{% extends "base.html" %}{% load i18n %} {% block title %}{% translate "Sync" %}{% endblock %} {% block content %}

{% translate "Sync with the online site" %}

{% translate "This office computer keeps a copy of callers, calls, tickets, prayer requests and follow-ups, and checks with the online site every minute. When the internet is down, keep working here: what you save waits on this computer and goes online by itself when the internet is back." %}

{% if state.server %}
{% csrf_token %}
{% endif %}
{% translate "Internet" %}
{% if not state.server %}{% translate "Not connected yet" %}{% elif state.online %}{% translate "Connected" %}{% else %}{% translate "No internet" %}{% if state.offline_since %} {% blocktranslate trimmed with time=state.offline_since|date:"j M, H:i" %}since {{ time }}{% endblocktranslate %}{% endif %}{% endif %}
{% translate "Last in step" %}
{% if state.last_ok_at %}{{ state.last_ok_at|date:"j M Y, H:i" }}{% else %}–{% endif %}
{% translate "Last sent online" %}
{% if state.last_sent_at %}{% blocktranslate trimmed count n=state.last_sent_count with time=state.last_sent_at|date:"j M Y, H:i" %}{{ time }}: {{ n }} record{% plural %}{{ time }}: {{ n }} records{% endblocktranslate %}{% else %}–{% endif %}
{% translate "Waiting to go online" %}
{% if waiting %}{% for name, n in waiting %}{{ name }}: {{ n }}{% if not forloop.last %} · {% endif %}{% endfor %}{% else %}{% translate "Nothing: everything saved here is online." %}{% endif %}{% if deletions %} · {% blocktranslate trimmed count n=deletions %}{{ n }} deletion{% plural %}{{ n }} deletions{% endblocktranslate %}{% endif %}
{% if state.problem %}
{% translate "Last problem" %}
{{ state.problem }}
{% endif %}
{% if problems %}

{% translate "Records that couldn’t go online yet" %}

{% translate "They are tried again every minute. Most wait for another record to go first; if one keeps failing, tell an administrator." %}

{% for name, p in problems %}{% endfor %}
{% translate "Kind" %}{% translate "Saved" %}{% translate "Tries" %}{% translate "Problem" %}
{{ name }}{{ p.changed_at|date:"j M, H:i" }}{{ p.tries }}{{ p.problem }}
{% endif %} {% if user.is_superuser %}

{% translate "Online site" %}

{% translate "Change these only if the online address changed, or a super user made a new connection code (online: Office computer page)." %}

{% csrf_token %}
{% endif %} {% endblock %}